package com.Helper;

public class DestInfo 
{
	public String arrivalLocation = null;
	public int count = 0;
	public String flightID = null;
	public String image1 = null;
	public String image2 = null;
	
	public DestInfo(String arrival, int c)
	{
		this.arrivalLocation = arrival;
		this.count = c;
	}
	
	public DestInfo()
	{
		
	}
	
	public String getImage1()
	{
		if (arrivalLocation.equals("Beijing"))
		{
			image1 = "/Website/icon/beijing1.jpg";
		}
		else if (arrivalLocation.equals("Toronto"))
		{
			image1 = "/Website/icon/toronto1.jpg";
		}
		else if (arrivalLocation.equals("Vancouver"))
		{
			image1 = "/Website/icon/vancouver1.jpg";
		}
		else if (arrivalLocation.equals("Edmonton"))
		{
			image1 = "/Website/icon/edmonton1.jpg";
		}
		else
		{
			image1 = "/Website/icon/beijing1.jpg";
		}
		
			
		
		return image1;
	}
	
	public String getImage2()
	{
		if (arrivalLocation.equals("Beijing"))
		{
			image1 = "/Website/icon/beijing2.jpg";
		}
		else if (arrivalLocation.equals("Toronto"))
		{
			image1 = "/Website/icon/toronto2.jpg";
		}
		else if (arrivalLocation.equals("Vancouver"))
		{
			image1 = "/Website/icon/vancouver2.jpg";
		}
		else if (arrivalLocation.equals("Edmonton"))
		{
			image1 = "/Website/icon/edmonton2.jpg";
		}
		else
		{
			image1 = "/Website/icon/beijing2.jpg";
		}
		
		return image1;
	}
	
	public String getArrivalLocation()
	{
		return arrivalLocation;
	}
	
	public int getCount()
	{
		return count;
	}
	
	public String getFlightID()
	{
		return flightID;
	}

}
